﻿<UserControl x:Class="FIFP.DashBoard.Views.LandingPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"             
    DataContext="{Binding MainPageVM,Source={StaticResource ServiceLocator}}"
    xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    mc:Ignorable="d"
    d:DesignHeight="1028" d:DesignWidth="1920">

    <Grid x:Name="LayoutRoot">
    	<Grid.Background>
    				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    					<GradientStop Color="#FF1C2028" Offset="0"/>
    					<GradientStop Color="#FF1C202B" Offset="1"/>
    					<!--<GradientStop Color="#FF353C48" Offset="0.245"/>
    					<GradientStop Color="#FF353C48" Offset="0.78"/>-->
    				</LinearGradientBrush>
    			</Grid.Background>
    	<Viewbox Stretch="Fill">

            <Grid Height="1028" Width="1920" Margin="10" >


                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>


                <Image Margin="0,0,0,10" Source="/FIFP.DashBoard;component/Images/ADMA.png" Stretch="Fill" Height="40" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top" Width="264" HorizontalAlignment="Left" Grid.ColumnSpan="2"/>

                <Grid Grid.Row="1" Visibility="{Binding UserExistVisibility}" HorizontalAlignment="Stretch" VerticalAlignment="Top">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>

                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0.5*"/>
                        <ColumnDefinition Width="0.5*"/>
                    </Grid.ColumnDefinitions>

                    <Image Cursor="Hand" Tag="ussc" Source="/FIFP.DashBoard;component/Images/USSC.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top" HorizontalAlignment="Left" Grid.Row="0" Grid.Column="0">
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="MouseLeftButtonDown">
                                <i:InvokeCommandAction Command="{Binding USSCFieldClickCommand}" 
    							CommandParameter="{Binding ElementName=grdChild}" />
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                    </Image>
                    <Image  Cursor="Hand" Tag="das" Source="/FIFP.DashBoard;component/Images/Das.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top"  HorizontalAlignment="Left" Grid.Row="0" Grid.Column="1">
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="MouseLeftButtonDown">
                                <i:InvokeCommandAction Command="{Binding USSCFieldClickCommand}" 
    							CommandParameter="{Binding ElementName=grdChild}" />
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                    </Image>
                    <Image  Cursor="Hand" Tag="zcsc" Source="/FIFP.DashBoard;component/Images/ZCSC.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top"  HorizontalAlignment="Left" Grid.Row="1" Grid.Column="0">
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="MouseLeftButtonDown">
                                <i:InvokeCommandAction Command="{Binding USSCFieldClickCommand}" 
    							CommandParameter="{Binding ElementName=grdChild}" />
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                    </Image>
                    <Image  Cursor="Hand" Tag="zwsc" Source="/FIFP.DashBoard;component/Images/ZWSC.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="1">
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="MouseLeftButtonDown">
                                <i:InvokeCommandAction Command="{Binding USSCFieldClickCommand}" 
    							CommandParameter="{Binding ElementName=grdChild}" />
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                    </Image>


                </Grid>

                <Border Visibility="{Binding UserNotExistVisibility}" Grid.Row="1" MinWidth="1500" BorderBrush="{StaticResource PopupBorder}" BorderThickness="1" Margin="0" CornerRadius="2" Background="#FF3D3D3D" VerticalAlignment="Center" HorizontalAlignment="Center" Width="1000" Height="600" >
                    <Grid Margin="0" Background="#FF2C303C">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Border Margin="0" CornerRadius="2,2,0,0" Background="#FF656565">
                            <Grid Margin="5,10" VerticalAlignment="Center">
                                <TextBlock HorizontalAlignment="Left" FontSize="26" VerticalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="User Permission" Style="{StaticResource PopupContentHead}" />
                            </Grid>
                        </Border>

                        <Grid Margin="0" Grid.Row="1" VerticalAlignment="Center" Background="#FF2C303C">
                            <TextBlock Margin="0" Grid.Column="1" FontSize="26" TextWrapping="Wrap" Text="Sorry! You don't have the permission to access this website. Please contact system administrator." VerticalAlignment="Center" HorizontalAlignment="Center" Style="{StaticResource ContentStyle}"/>
                        </Grid>
                    </Grid>
                </Border>
            


    </Grid>
    	</Viewbox>
    </Grid>
</UserControl>
